package net.hmr_radio.hmrbot.util;

public class AssertionUtil {

    private AssertionUtil() {
    }

    /**
     * 引数がnullではないことをチェックする.
     * 
     * @param value
     *            値
     * @throws IllegalStateException
     *             -
     */
    public static void nullCheck(Object... value) throws IllegalStateException {
        for (int i = 0; i < value.length; i++) {
            if (value[i] == null) {
                throw new IllegalStateException("value[" + i + "] is null!!");
            }
        }
    }
}
